package com.ruoyi.buss.report.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.report.mapper.ReportDkjgCpjgLsbMapper;
import com.ruoyi.buss.report.domain.ReportDkjgCpjgLsb;
import com.ruoyi.buss.report.service.IReportDkjgCpjgLsbService;

/**
 * 贷款结构趋势-产品结构4.3.1.1.1-7Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class ReportDkjgCpjgLsbServiceImpl implements IReportDkjgCpjgLsbService 
{
    @Autowired
    private ReportDkjgCpjgLsbMapper reportDkjgCpjgLsbMapper;

    /**
     * 查询贷款结构趋势-产品结构4.3.1.1.1-7
     * 
     * @param sjrq 贷款结构趋势-产品结构4.3.1.1.1-7ID
     * @return 贷款结构趋势-产品结构4.3.1.1.1-7
     */
    @Override
    public ReportDkjgCpjgLsb selectReportDkjgCpjgLsbById(String sjrq)
    {
        return reportDkjgCpjgLsbMapper.selectReportDkjgCpjgLsbById(sjrq);
    }

    /**
     * 查询贷款结构趋势-产品结构4.3.1.1.1-7列表
     * 
     * @param reportDkjgCpjgLsb 贷款结构趋势-产品结构4.3.1.1.1-7
     * @return 贷款结构趋势-产品结构4.3.1.1.1-7
     */
    @Override
    public List<ReportDkjgCpjgLsb> selectReportDkjgCpjgLsbList(ReportDkjgCpjgLsb reportDkjgCpjgLsb)
    {
        return reportDkjgCpjgLsbMapper.selectReportDkjgCpjgLsbList(reportDkjgCpjgLsb);
    }

    /**
     * 新增贷款结构趋势-产品结构4.3.1.1.1-7
     * 
     * @param reportDkjgCpjgLsb 贷款结构趋势-产品结构4.3.1.1.1-7
     * @return 结果
     */
    @Override
    public int insertReportDkjgCpjgLsb(ReportDkjgCpjgLsb reportDkjgCpjgLsb)
    {
        reportDkjgCpjgLsb.setCreateTime(DateUtils.getNowDate());
        return reportDkjgCpjgLsbMapper.insertReportDkjgCpjgLsb(reportDkjgCpjgLsb);
    }

    /**
     * 修改贷款结构趋势-产品结构4.3.1.1.1-7
     * 
     * @param reportDkjgCpjgLsb 贷款结构趋势-产品结构4.3.1.1.1-7
     * @return 结果
     */
    @Override
    public int updateReportDkjgCpjgLsb(ReportDkjgCpjgLsb reportDkjgCpjgLsb)
    {
        return reportDkjgCpjgLsbMapper.updateReportDkjgCpjgLsb(reportDkjgCpjgLsb);
    }

    /**
     * 批量删除贷款结构趋势-产品结构4.3.1.1.1-7
     * 
     * @param sjrqs 需要删除的贷款结构趋势-产品结构4.3.1.1.1-7ID
     * @return 结果
     */
    @Override
    public int deleteReportDkjgCpjgLsbByIds(String[] sjrqs)
    {
        return reportDkjgCpjgLsbMapper.deleteReportDkjgCpjgLsbByIds(sjrqs);
    }

    /**
     * 删除贷款结构趋势-产品结构4.3.1.1.1-7信息
     * 
     * @param sjrq 贷款结构趋势-产品结构4.3.1.1.1-7ID
     * @return 结果
     */
    @Override
    public int deleteReportDkjgCpjgLsbById(String sjrq)
    {
        return reportDkjgCpjgLsbMapper.deleteReportDkjgCpjgLsbById(sjrq);
    }
}
